import service from "../../utils/request"

export const getVerRecordPage = async (page: number, ver_phone: string): Promise<PageResult<ListVerRecord[]>> =>
    await service.get(`/ver-record/page?page=${page}&ver_phone=${ver_phone}`)

export const verifyRes = async (data: { ver_id: string, houseResId: string }): Promise<Result<string>> =>
    await service.patch(`/ver-record/verify`, data)

export const delVerRecord = async (id: string): Promise<Result<string>> =>
    await service.delete(`/ver-record/${id}`)

export const manyDelVerRecord = async (ids: string): Promise<Result<string>> =>
    await service.delete(`/ver-record/many/${ids}`)